<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{ido4SysUserParameterBean.id}"/>
		<f:event type="preRenderView" listener="#{ido4SysUserParameterBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Ido 4Sys User Parameter"/>

	<ui:define name="header">
		Ido 4Sys User Parameter
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty ido4SysUserParameterBean.id}">
				Edit existing Ido 4Sys User Parameter
			</c:when>
			<c:otherwise>
				Create a new Ido 4Sys User Parameter
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysUser" value="Ido 4Sys User:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{ido4SysUserBean.converter}" id="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysUser" value="#{ido4SysUserParameterBean.ido4SysUserParameter.ido4SysUser}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{ido4SysUserBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysUser" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysParameterMaster" value="Ido 4Sys Parameter Master:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{ido4SysParameterMasterBean.converter}" id="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysParameterMaster" value="#{ido4SysUserParameterBean.ido4SysUserParameter.ido4SysParameterMaster}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{ido4SysParameterMasterBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="ido4SysUserParameterBeanIdo4SysUserParameterIdo4SysParameterMaster" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SysUserParameterBeanIdo4SysUserParameterParamStringVal" value="Param String Val:"/>
				<h:panelGroup>
					<h:inputText id="ido4SysUserParameterBeanIdo4SysUserParameterParamStringVal" maxLength="500" value="#{ido4SysUserParameterBean.ido4SysUserParameter.paramStringVal}"/>
					<h:message for="ido4SysUserParameterBeanIdo4SysUserParameterParamStringVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SysUserParameterBeanIdo4SysUserParameterParamNumberVal" value="Param Number Val:"/>
				<h:panelGroup>
					<h:inputText id="ido4SysUserParameterBeanIdo4SysUserParameterParamNumberVal" value="#{ido4SysUserParameterBean.ido4SysUserParameter.paramNumberVal}"/>
					<h:message for="ido4SysUserParameterBeanIdo4SysUserParameterParamNumberVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{ido4SysUserParameterBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty ido4SysUserParameterBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{ido4SysUserParameterBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{ido4SysUserParameterBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>